package com.roadmap.entities;

import java.util.Date;

import com.roadmap.common.BaseConst;
import com.roadmap.common.BaseEntity;

public class Registration extends BaseEntity {
	private String mail;
	private int status;
	private String ipAddress;
	private String randomCode;

	public Registration() {
		super();
		this.status = BaseConst.REGISTRATION_STATUS_NotPassed;
	}

	/**
	 * some properties [id, registeredTime, updatedTime, status] are assigned by
	 * default values. all parameters listed in this constructor can't be NULL
	 */
	public Registration(String mail, String ipAddress) {
		super();
		this.status = BaseConst.REGISTRATION_STATUS_NotPassed;
		this.mail = mail;
		this.ipAddress = ipAddress;
	}

	/** all properties are assigned with values by manual */
	public Registration(String id, Date createdTime, Date updatedTime,
			String mail, int status, String ipAddress) {
		super(id, createdTime, updatedTime);
		this.mail = mail;
		this.status = status;
		this.ipAddress = ipAddress;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getIpAddress() {
		return ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	public String getRandomCode() {
		return randomCode;
	}

	public void setRandomCode(String randomCode) {
		this.randomCode = randomCode;
	}

}
